import request from '@/utils/request'

// 查询模块绑定关系列表
export function listModeuleBinding(query) {
  return request({
    url: '/ai/modeuleBinding/list',
    method: 'get',
    params: query
  })
}

// 查询模块绑定关系详细
export function getModeuleBinding(bindingId) {
  return request({
    url: '/ai/modeuleBinding/' + bindingId,
    method: 'get'
  })
}

// 新增模块绑定关系
export function addModeuleBinding(data) {
  return request({
    url: '/ai/modeuleBinding',
    method: 'post',
    data: data
  })
}

// 修改模块绑定关系
export function updateModeuleBinding(data) {
  return request({
    url: '/ai/modeuleBinding',
    method: 'put',
    data: data
  })
}

// 删除模块绑定关系
export function delModeuleBinding(bindingId) {
  return request({
    url: '/ai/modeuleBinding/' + bindingId,
    method: 'delete'
  })
}
